# -*- coding: utf-8 -*-
# @Time : 2021/6/14 3:39
# @Author : lanjy
# @Email : wayne_lau@aliyun.com
# @File : for循环实例.py
# @Project : python_learn

sites = ["Baidu", "Google","Runoob","Taobao"]
for site in sites:
    if site == "Runoob":
        print("菜鸟教程!")
        break
    print("循环数据 " + site)
else:
    print("没有循环数据!")
print("完成循环!")


print("=============使用内置range()函数===================")
for i in range(len(sites)) :
    print(sites[i])


print("课后练习：以下代码输出的结果是？")
# if None:
#     print(“Hello”)